home *** CD-ROM | disk | FTP | other *** search
- Path: goanna.cs.rmit.EDU.AU!not-for-mail
- From: rav@goanna.cs.rmit.EDU.AU (++ robin)
- Newsgroups: comp.lang.pl1,comp.lang.c
- Subject: Re: PL/I and C
- Date: 2 Mar 1996 19:12:30 +1100
- Organization: Comp Sci, RMIT, Melbourne, Australia
- Message-ID: <4h8vte$s76@goanna.cs.rmit.EDU.AU>
- References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <312CCEB2.4AB7@corp.dialog.com> <4grhtv$s31@goanna.cs.rmit.EDU.AU> <4gt0tv$826@solutions.solon.com> <4h11ub$njp@goanna.cs.rmit.EDU.AU> <TANMOY.96Feb28085159@qcd.lanl.gov>
- NNTP-Posting-Host: goanna.cs.rmit.edu.au
- X-Newsreader: NN version 6.5.0 #0 (NOV)
-
- tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) writes:
-
- >In article <4h11ub$njp@goanna.cs.rmit.EDU.AU>
- >rav@goanna.cs.rmit.EDU.AU (++ robin) writes:
- ><snip>
- >r: >strchr, strrchr, strspn, strcspn, strpbrk.
- ><snip>
- >r: As for the others (strrchr etc), they are not in all systems.
-
- >When one discusses languages, one ought to take the standard version
- >of of the language, especially when the standard is not `brand
- >new'.
-
- ---there are several standards. Which one do you mean?
-
- All of the functions mentioned are ANSI C functions, and saying
- >that not all systems have them is like saying that not all fortran
- >systems define the intrinsic `LEN'. Technically true,
-
- ---so far as I know, all FORTRANs have LEN.
-
- >but completely irrelevant to any useful discussions about the language.
-
- >I am actually not concerned in your `language debate'. I just do not
- >want false statements in comp.lang.c to pass unchallenged and thus
- >confuse others.
-
- >r: >> There are several functions for centering text, & trimming
- >r: >>given characters from either or both ends of a string.
- >r: >sprintf.
- >r: ---Not quite. The above are non-I/O functions.
-
- >How is sprintf an I/O function? It inputs its parameters and outputs
- >into the memory pointed to by one of its parameters?
-
- ---sprint prints to memory. However, it does nothing like the
- functions that I mentioned for centering text, and trimming given
- characters from either or both ends of a string.
-
- sprint would appear to be comparable in intent to PUT STRING.
-